package com.topvision.service.impl.sys;

import com.topvision.mapper.sys.SysUserDetailMapper;
import com.topvision.model.sys.SysUserDetail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.topvision.service.sys.SysUserDetailService;

@Service("sysUserDetailService")
public class SysUserDetailServiceImpl implements SysUserDetailService {
	@Autowired
	private SysUserDetailMapper sysUserDetailMapper;
	
	@Override
	public SysUserDetail queryObject(Long id){
		return sysUserDetailMapper.queryObject(id);
	}
	
	@Override
	public List<SysUserDetail> queryList(Map<String, Object> map){
		return sysUserDetailMapper.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return sysUserDetailMapper.queryTotal(map);
	}
	
	@Override
	public void save(SysUserDetail sysUserDetail){
		sysUserDetailMapper.save(sysUserDetail);
	}
	
	@Override
	public void update(SysUserDetail sysUserDetail){
		sysUserDetailMapper.update(sysUserDetail);
	}
	
	@Override
	public void delete(Long id){
		sysUserDetailMapper.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		sysUserDetailMapper.deleteBatch(ids);
	}

	@Override
	public void updateByUserId(SysUserDetail sysUserDetail) {
		sysUserDetailMapper.updateByUserId(sysUserDetail);
	}

}
